package mblog.web.taobao;

import com.taobao.api.ApiException;
import com.taobao.api.response.TbkDgItemCouponGetResponse;
import com.taobao.api.response.TbkTpwdCreateResponse;

import java.io.IOException;
import java.util.List;

public interface TaoBaoService {

    public TbkDgItemCouponGetResponse findItemsFromTaobao(String keyword, Long size, Long pn) throws ApiException;

    public TbkTpwdCreateResponse createTaoKouLing(String text, String url, String logo) throws ApiException;

    public GoodsDetail getGoodsDetail(String id) throws IOException, ApiException;

    public List<Goods> findPageGoods(String type, Integer page) throws IOException;

    public List<Goods> findPageGoodsByCid(String type, String cid, String px, Integer page) throws IOException;

    public List<Goods> findTop100();

    public List<Goods> findSwipeGoods() throws IOException;

    List<Goods> findGoodsSearch(String keyword, Integer page, String px);
}
